package com.googlecode.ozonbooksfinder.matefinder.events
{
	import flash.events.ErrorEvent;
	import flash.events.Event;

	public class ServerErrorEvent extends ErrorEvent
	{
		public static const SERVER_ERROR_RESPONSE:String = "serverErrorResponse";
		
		public var cause:*;
		
		public function ServerErrorEvent (type:String, 
				bubbles:Boolean=false, cancelable:Boolean=false, text:String="")
		{
			super(type, bubbles, cancelable, text);
		}
		
		override public function clone():Event
		{
			var result:ServerErrorEvent = 
				new ServerErrorEvent (type, bubbles, cancelable, text);
			result.cause = cause;
			return result;
		}
	}
}